#pragma once

#include <cstdint>

#include "ranges.h"

class CmapParser {
public:
    CmapParser(const void *data, int32_t size);
    int Parse(Ranges &ranges);

private:
    int ParseFormat4(const char *data, const std::size_t size, Ranges &ranges);

    const void *data_ = nullptr;
    int32_t size_ = 0;
};
